<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jstl/fmt_rt" %>    
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>   
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--<base href="http://www.dachengdata.com:80/">--><base href=".">
    <title>图书馆-注册</title>
    <link type="text/css" rel="stylesheet" href="../css/common.css">
    <link type="text/css" rel="stylesheet" href="../css/login.css">
    <script src="${pageContext.request.contextPath}/js/jquery.js"></script>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
    <script src="../js/jquery-1.6.4.min.js.下载"></script>
	<script type="text/javascript">
	
	function regist(){
		var username = $("#username").val();
		var password = $("#password").val();
		$.ajax({
		 type:"POST",
		 data:{"username":username,"password":password},
		 url:"${pageContext.request.contextPath}/regist",
		 success:function(data){
			 if(data.result=="请输入十位纯数字用户名"){
				 alert("请输入十位纯数字用户名");
			 }
			 if(data.result=="用户名已存在"){
				 alert("用户名已存在");
			 }
			 if(data.result=="注册成功"){
				 alert("注册成功");
			 }
			 if(data.result=="注册失败"){
				 alert("注册失败");
			 }
		 }
		});
		return false;
	}
	</script>
  </head>
  <body >
<div class="head">
   <div class="wrap">
       <p class="fr"><a href="${pageContext.request.contextPath}/enterIndex">首页</a></p>
       <img src="../images/login_logo.gif" width="222" height="43">
   </div>
</div>
<div class="content">
   <div class="wrap" align="right" id="loginDiv">
    <form>  
       <div class="login">
           <dl>
              <dt>用户注册</dt>
              <dd class="txt">
              	<b class="icons icons1"></b>
				<input type="text"  id="username" style="font-size: 20px;color: gray">
			  </dd>
              <dd class="txt">
              	<b class="icons icons2"></b>
              	<input type="password" id="password" style="font-size: 20px;color: gray">
              </dd>
              
              <dd class="btn">
              	<input  type="button" onclick="regist()" value="注册">
			  </dd>
           </dl>
       </div>
      </form>
  </div>
  
</div>

<div class="foot" align="center" >
	<p>©2013邹燕故纸堆 | 京ICP备10215816号-1 | 
	<a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010802021942" style="display:inline-block;text-decoration:none;height:20px;line-height:20px;">
		<img src="../images/gongan.png" style="float:left;">京公网安备11010802021942号
	</a>
    </p><p>服务电话：010-56181272 &nbsp;&nbsp;电子邮箱：1558418600@qq.com</p>
    <script type="text/javascript">
    	var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
    	document.write(unescape("%3Cspan id='cnzz_stat_icon_1254092987'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s4.cnzz.com/z_stat.php%3Fid%3D1254092987%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));
    </script><span id="cnzz_stat_icon_1254092987"><a href="http://www.cnzz.com/stat/website.php?web_id=1254092987" target="_blank" title="站长统计"><img border="0" hspace="0" vspace="0" src="../images/pic.gif"></a></span>
    <a href="http://www.dachengdata.com/tuijian/advice.jsp" style="margin-left:10px; text-decoration:underline;" target="_blank">意见反馈</a>
    <a href="http://www.dachengdata.com/help/help.html" style="margin-left:10px; text-decoration:underline;" target="_blank">使用帮助</a>
</div>
  

</body></html>